package com.wdl.fmnew.core.net;

import com.wdl.fmnew.core.net.api.ApiService;

import javax.inject.Named;
import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import retrofit2.Retrofit;

/**
 * Created by wdl on 2017/9/18.
 */

@Module
public class ApiServiceModule {
    @Singleton
    @Provides
    public ApiService providesApi(@Named("default") Retrofit retrofit) {
        return retrofit.create(ApiService.class);
    }
}
